package com.holystone.orca.sys.mybatis.dao;

import java.util.List;
import java.util.Map;

import com.holystone.orca.sys.mybatis.model.SysOperationLog;
import com.holystone.orca.util.MyMapper;

public interface SysOperationLogMapper extends MyMapper<SysOperationLog> {
	
	/**
	 * 获取日志信息，传入属性可查询
	 * @author huangjc
	 * @param map
	 * @return
	 */
	public List<SysOperationLog> getOperationLog(Map<String, Object> map);
	
	/**
	 * 添加日志
	 * @author huangjc
	 * @param sysOperationLog
	 * @return
	 */
	public int addOperationLog(SysOperationLog sysOperationLog);
	
	/**
	 * 如果日志的条数大于1000条，则删除最早插入的数据
	 * @author huangjc
	 * @return
	 */
	public int delMoreLog();
}